<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        .demo {
            width: 605px;
            height: 344px; 
            line-height: 344px;
            text-align: center;
            font-size: 20px;
            background: url("img/渐变图片.png") repeat-x;
        }
    </style>
</head>
<body>
    <div class="demo">主页</div>
</body>
</html>